import { GameObject } from "./GameObject";

export class StarPoint extends GameObject{
    constructor(r,c,gamemap){
        super();

        this.r = r;
        this.c = c;
        this.gamemap = gamemap;
        this.color = "#000000";
    }

    start(){

    }
    update(){
        this.render();
    }
    render(){
        // 绘制星位点
        const L = this.gamemap.L;
        const ctx = this.gamemap.ctx;
        const x = this.c * L;
        const y = this.r * L;
        ctx.fillStyle = this.color;
        ctx.beginPath();
        ctx.arc(x, y, L*0.1, 0, Math.PI * 2);
        ctx.fill();
    }
}